/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * SubOrder2.java
 *
 * Created on 21-08-2011, 12:33:16
 */
package tuitionmanagement.gui;

import Business.SubOrderBuss;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Vector;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
import tuitionmanagement.DAO.SubOrderDao;
import tuitionmanagement.entity.SubOrderEntity;

/**
 *
 * @author XUAN
 */
public class SubOrder extends javax.swing.JFrame {

    Vector vRow = new Vector();
    ArrayList<SubOrderEntity> lst;
    SubOrderBuss subbuss = new SubOrderBuss();
    SubOrderDao subdao = new SubOrderDao();
    SubOrderEntity sub = new SubOrderEntity();
    public int confirm;
    int index;

    /** Creates new form SubOrder2 */
    public SubOrder() {
        initComponents();
        loadSubOrdersOneStudent();
        int result = tbSubOrder.getRowCount();
        if (result == 0) {
            txtmeassage.setText("No results match.");
        } else {
            txtmeassage.setText(result + " results match.");
        }
//        subbuss.readByAll();
//        loadTableSubOrderDetail(index);
    }

    private void loadSubOrdersOneStudent() {
        vRow.clear();
        String search = txtStudentId.getText();
        lst = subbuss.getSubOrderOneStudent(search);

        for (int i = 0; i < lst.size(); i++) {
            Vector v = new Vector();

            sub = lst.get(i);
            v.addElement(sub.getSubOrderId());
            v.addElement(sub.getStudentId());
            v.addElement(sub.getDescription());
            v.addElement(sub.getRateId());
            v.addElement(sub.getFeeLevelId());
            v.addElement(sub.getMoney());
            v.addElement(sub.getFeeDate());

            vRow.addElement(v);
        }

        Vector vCol = new Vector();
        vCol.addElement("SubOrderId");
        vCol.addElement("StudentId");
        vCol.addElement("Description");
        vCol.addElement("RateId");
        vCol.addElement("FeeLevelId");
        vCol.addElement("Money");
        vCol.addElement("FeeDate");


        DefaultTableModel tblModel = new DefaultTableModel(vRow, vCol);
        tbSubOrder.setModel(tblModel);
    }

    public void loadAllSubOrder() {
        lst.clear();
        lst = subbuss.readByAll();
        loadTableSubOder(lst);
    }

    public void loadTableSubOder(ArrayList<SubOrderEntity> lst) {

        for (int i = 0; i < lst.size(); i++) {
            Vector v = new Vector();

            sub = lst.get(i);
            v.addElement(sub.getSubOrderId());
            v.addElement(sub.getStudentId());
            v.addElement(sub.getDescription());
            v.addElement(sub.getRateId());
            v.addElement(sub.getFeeLevelId());
            v.addElement(sub.getMoney());
            v.addElement(sub.getFeeDate());


            vRow.addElement(v);
        }

        Vector vCol = new Vector();
        vCol.addElement("SubOrderId");
        vCol.addElement("StudentId");
        vCol.addElement("Description");
        vCol.addElement("RateId");
        vCol.addElement("FeeLevelId");
        vCol.addElement("Money");
        vCol.addElement("FeeDate");

        DefaultTableModel tblModel = new DefaultTableModel(vRow, vCol);
        tbSubOrder.setModel(tblModel);
    }

    private void loadTableSubOrderDetail(int index) {

        ArrayList<SubOrderEntity> list = subbuss.readByAll();
        for (int i = 0; i < list.size(); i++) {
            if (index != list.get(i).getFeeLevelId()) {
                list.remove(i);
                i--;
            }
        }
        loadAllSubOrder();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {
        java.awt.GridBagConstraints gridBagConstraints;

        jLabel2 = new javax.swing.JLabel();
        jPanel4 = new javax.swing.JPanel();
        btnAdd = new javax.swing.JButton();
        btnEdit = new javax.swing.JButton();
        btnDelete = new javax.swing.JButton();
        jPanel5 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        tbSubOrder = new javax.swing.JTable();
        jPanel3 = new javax.swing.JPanel();
        jLabel9 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        txtRate = new javax.swing.JTextField();
        txtStudentId = new javax.swing.JTextField();
        jLabel10 = new javax.swing.JLabel();
        txtMoney = new javax.swing.JTextField();
        jLabel11 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        txtDescriptionn = new javax.swing.JTextField();
        jLabel13 = new javax.swing.JLabel();
        txtFeeLevelId = new javax.swing.JTextField();
        txtSubOrderId = new javax.swing.JTextField();
        jLabel14 = new javax.swing.JLabel();
        dcDate = new com.toedter.calendar.JDateChooser();
        jLabel1 = new javax.swing.JLabel();
        jPanel1 = new javax.swing.JPanel();
        txtmeassage = new javax.swing.JLabel();

        jLabel2.setText("jLabel2");

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        getContentPane().setLayout(new java.awt.GridBagLayout());

        jPanel4.setLayout(new java.awt.GridBagLayout());

        btnAdd.setIcon(new javax.swing.ImageIcon(getClass().getResource("/tuitionmanagement/icon/add2.png"))); // NOI18N
        btnAdd.setText("Add");
        btnAdd.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAddActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.insets = new java.awt.Insets(9, 5, 6, 5);
        jPanel4.add(btnAdd, gridBagConstraints);

        btnEdit.setIcon(new javax.swing.ImageIcon(getClass().getResource("/tuitionmanagement/icon/edit.png"))); // NOI18N
        btnEdit.setText("Edit");
        btnEdit.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnEditActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.insets = new java.awt.Insets(9, 5, 6, 5);
        jPanel4.add(btnEdit, gridBagConstraints);

        btnDelete.setIcon(new javax.swing.ImageIcon(getClass().getResource("/tuitionmanagement/icon/delete2.png"))); // NOI18N
        btnDelete.setText("Delete");
        btnDelete.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnDeleteActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.insets = new java.awt.Insets(9, 5, 6, 5);
        jPanel4.add(btnDelete, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 3;
        gridBagConstraints.insets = new java.awt.Insets(10, 0, 10, 0);
        getContentPane().add(jPanel4, gridBagConstraints);

        jPanel5.setLayout(new java.awt.GridBagLayout());

        tbSubOrder.setFont(new java.awt.Font("Tahoma", 0, 12));
        tbSubOrder.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null}
            },
            new String [] {
                "SubOrderId", "StudentId", "Description", "Rate", "FeeLevelId", "Money", "FeeDate"
            }
        ));
        tbSubOrder.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tbSubOrderMouseClicked(evt);
            }
        });
        jScrollPane1.setViewportView(tbSubOrder);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.ipadx = 420;
        gridBagConstraints.ipady = 100;
        jPanel5.add(jScrollPane1, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        getContentPane().add(jPanel5, gridBagConstraints);

        jPanel3.setLayout(new java.awt.GridBagLayout());

        jLabel9.setFont(new java.awt.Font("Tahoma", 0, 12));
        jLabel9.setText("Money:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 5;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        jPanel3.add(jLabel9, gridBagConstraints);

        jLabel8.setFont(new java.awt.Font("Tahoma", 0, 12));
        jLabel8.setText("StudentId:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        jPanel3.add(jLabel8, gridBagConstraints);

        txtRate.setMinimumSize(new java.awt.Dimension(150, 20));
        txtRate.setPreferredSize(new java.awt.Dimension(150, 20));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 8;
        gridBagConstraints.insets = new java.awt.Insets(5, 15, 1, 5);
        jPanel3.add(txtRate, gridBagConstraints);

        txtStudentId.setEditable(false);
        txtStudentId.setText("102");
        txtStudentId.setMinimumSize(new java.awt.Dimension(150, 20));
        txtStudentId.setPreferredSize(new java.awt.Dimension(150, 20));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.insets = new java.awt.Insets(5, 15, 5, 5);
        jPanel3.add(txtStudentId, gridBagConstraints);

        jLabel10.setFont(new java.awt.Font("Tahoma", 0, 12));
        jLabel10.setText("Date:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 7;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 1, 5);
        jPanel3.add(jLabel10, gridBagConstraints);

        txtMoney.setMinimumSize(new java.awt.Dimension(150, 20));
        txtMoney.setPreferredSize(new java.awt.Dimension(150, 20));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 5;
        gridBagConstraints.insets = new java.awt.Insets(5, 15, 5, 5);
        jPanel3.add(txtMoney, gridBagConstraints);

        jLabel11.setFont(new java.awt.Font("Tahoma", 0, 12));
        jLabel11.setText("Rate:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 8;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 1, 5);
        jPanel3.add(jLabel11, gridBagConstraints);

        jLabel12.setFont(new java.awt.Font("Tahoma", 0, 12));
        jLabel12.setText("Description:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 1, 5);
        jPanel3.add(jLabel12, gridBagConstraints);

        txtDescriptionn.setMinimumSize(new java.awt.Dimension(150, 20));
        txtDescriptionn.setPreferredSize(new java.awt.Dimension(150, 20));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.insets = new java.awt.Insets(5, 15, 1, 5);
        jPanel3.add(txtDescriptionn, gridBagConstraints);

        jLabel13.setFont(new java.awt.Font("Tahoma", 0, 12));
        jLabel13.setText("FeeLevelId:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 6;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 1, 5);
        jPanel3.add(jLabel13, gridBagConstraints);

        txtFeeLevelId.setMinimumSize(new java.awt.Dimension(150, 20));
        txtFeeLevelId.setPreferredSize(new java.awt.Dimension(150, 20));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 6;
        gridBagConstraints.insets = new java.awt.Insets(5, 15, 1, 5);
        jPanel3.add(txtFeeLevelId, gridBagConstraints);

        txtSubOrderId.setMinimumSize(new java.awt.Dimension(150, 20));
        txtSubOrderId.setPreferredSize(new java.awt.Dimension(150, 20));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 3;
        gridBagConstraints.insets = new java.awt.Insets(5, 15, 5, 5);
        jPanel3.add(txtSubOrderId, gridBagConstraints);

        jLabel14.setFont(new java.awt.Font("Tahoma", 0, 12));
        jLabel14.setText("SubOrderId:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 3;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        jPanel3.add(jLabel14, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 7;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(5, 15, 1, 5);
        jPanel3.add(dcDate, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.insets = new java.awt.Insets(10, 0, 5, 0);
        getContentPane().add(jPanel3, gridBagConstraints);

        jLabel1.setFont(new java.awt.Font("Tahoma", 0, 18));
        jLabel1.setForeground(new java.awt.Color(0, 0, 255));
        jLabel1.setText("SubOrder");
        getContentPane().add(jLabel1, new java.awt.GridBagConstraints());

        jPanel1.setLayout(new java.awt.GridBagLayout());
        jPanel1.add(txtmeassage, new java.awt.GridBagConstraints());

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        getContentPane().add(jPanel1, gridBagConstraints);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void btnAddActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAddActionPerformed
        // TODO add your handling code here:
        if (txtStudentId.getText().trim().equals("")
                || txtDescriptionn.getText().trim().equals("")
                || txtMoney.getText().trim().equals("")
                || txtFeeLevelId.getText().trim().equals("")
                || txtRate.getText().trim().equals("")
                || dcDate.getDate().equals(null)) {
            JOptionPane.showMessageDialog(this, "Please fill in all the blanks!");
            txtStudentId.requestFocus();
            return;
        }

        confirm = JOptionPane.showConfirmDialog(this, "Are you sure?", "New SubOrder", JOptionPane.YES_NO_OPTION, JOptionPane.INFORMATION_MESSAGE, null);
        if (confirm == JOptionPane.YES_OPTION) {
            sub.setSubOrderId(Integer.parseInt(txtStudentId.getText()));
            sub.setDescription(txtDescriptionn.getText());
            sub.setMoney(Float.parseFloat(txtMoney.getText()));
            sub.setFeeLevelId(Integer.parseInt(txtFeeLevelId.getText()));
            sub.setFeeDate(new java.sql.Date(dcDate.getDate().getTime()));
            sub.setRateId(Integer.parseInt(txtRate.getText()));
            if (subbuss.addSubOrder(sub)) {
                JOptionPane.showMessageDialog(this, sub.getLastError());
                txtStudentId.setText(null);
                txtDescriptionn.setText(null);
                txtFeeLevelId.setText(null);
                txtMoney.setText(null);
                dcDate.setDate(null);
                txtRate.setText(null);

                txtStudentId.requestFocus();
                vRow.clear();
                loadAllSubOrder();
                this.tbSubOrder.updateUI();
            } else {
                JOptionPane.showMessageDialog(this, subbuss.getLastError());
            }

        }

    }//GEN-LAST:event_btnAddActionPerformed

    private void btnEditActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEditActionPerformed
        // TODO add your handling code here:
//        txtStudentName.setText(null);
        int selectedIndex = tbSubOrder.getSelectedRow();
        SubOrderEntity subOrder = lst.get(selectedIndex);
        int subId = subOrder.getSubOrderId();
        if (txtDescriptionn.getText().trim().equals("")
                || txtStudentId.getText().trim().equals("")
                || dcDate.getDate().equals(null)
                || txtFeeLevelId.getText().trim().equals("")
                || txtMoney.getText().trim().equals("")
                || txtRate.getText().trim().equals("")) {
            JOptionPane.showMessageDialog(this, "Please fill in all the blanks!");
            return;
        }

        confirm = JOptionPane.showConfirmDialog(this, "Are you sure?", "Update SubOrder", JOptionPane.YES_NO_OPTION, JOptionPane.INFORMATION_MESSAGE, null);
        if (confirm == JOptionPane.YES_OPTION) {
            sub.setSubOrderId(subId);
            sub.setDescription(txtDescriptionn.getText());
            sub.setMoney(Float.parseFloat(txtMoney.getText()));
            sub.setFeeLevelId(Integer.parseInt(txtFeeLevelId.getText()));
            sub.setFeeDate(new java.sql.Date(dcDate.getDate().getTime()));
            sub.setRateId(Integer.parseInt(txtRate.getText()));
            sub.setStudentId(Integer.parseInt(txtStudentId.getText()));
            if (subbuss.update(sub)) {
                JOptionPane.showMessageDialog(this, subbuss.getLastError());
                vRow.clear();
                loadAllSubOrder();
                this.tbSubOrder.updateUI();
//                txtStudentName.setText(null);
                txtStudentId.setText(null);
                dcDate.setDate(null);
                txtDescriptionn.setText(null);
                txtFeeLevelId.setText(null);
                txtMoney.setText(null);
                txtRate.setText(null);
                txtSubOrderId.requestFocus();
            } else {
                JOptionPane.showMessageDialog(this, subbuss.getLastError());
            }
        }
}//GEN-LAST:event_btnEditActionPerformed

    private void btnDeleteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDeleteActionPerformed
        // TODO add your handling code here:
//        txtStudentName.setText(null);
        int selectedIndex = tbSubOrder.getSelectedRow();
        SubOrderEntity subOrder = lst.get(selectedIndex);
        int subId = subOrder.getSubOrderId();

        confirm = JOptionPane.showConfirmDialog(this, "Are you sure?", "Delete SubOrder", JOptionPane.YES_NO_OPTION, JOptionPane.INFORMATION_MESSAGE, null);
        if (confirm == JOptionPane.YES_OPTION) {
            if (subbuss.delete(subId)) {
                JOptionPane.showMessageDialog(this, subbuss.getLastError());
//                txtStudentName.setText(null);
                txtStudentId.setText(null);
                dcDate.setDate(null);
                txtDescriptionn.setText(null);
                txtFeeLevelId.setText(null);
                txtMoney.setText(null);
                txtRate.setText(null);
                txtSubOrderId.requestFocus();

                vRow.clear();
                loadAllSubOrder();
                this.tbSubOrder.updateUI();
            } else {
                JOptionPane.showMessageDialog(this, subbuss.getLastError());
            }
        }
}//GEN-LAST:event_btnDeleteActionPerformed

    private void tbSubOrderMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tbSubOrderMouseClicked
        // TODO add your handling code here:
//        int selectedIndex = tbSubOrder.getSelectedRow();
//        SubOrderEntity suborder = lst.get(selectedIndex);
//
//        txtSubOrderId.setText(String.valueOf(tbSubOrder.getValueAt(selectedIndex, 0)));
//        txtStudentId.setText(String.valueOf(tbSubOrder.getValueAt(selectedIndex, 1)));
//        txtDescriptionn.setText(String.valueOf(tbSubOrder.getValueAt(selectedIndex, 2)));
//        txtMoney.setText(String.valueOf(tbSubOrder.getValueAt(selectedIndex, 5)));
//        txtFeeLevelId.setText(String.valueOf(tbSubOrder.getValueAt(selectedIndex, 4)));
//
//        SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
//        try {
//            dcDate.setDate(sdf.parse(tbSubOrder.getValueAt(selectedIndex, 6).toString()));
//        } catch (ParseException ex) {
//            Logger.getLogger(SubOrder.class.getName()).log(Level.SEVERE, null, ex);
//        }
//        txtRate.setText(String.valueOf(tbSubOrder.getValueAt(selectedIndex, 3)));


        int selectedIndex = tbSubOrder.getSelectedRow();
        if (selectedIndex > -1) {
            // RateEntity rate = lst.get(selectedIndex);
            txtStudentId.setText(String.valueOf(lst.get(selectedIndex).getStudentId()));
            txtSubOrderId.setText(String.valueOf(lst.get(selectedIndex).getSubOrderId()));
            txtDescriptionn.setText(String.valueOf(lst.get(selectedIndex).getDescription()));
            txtRate.setText(String.valueOf(lst.get(selectedIndex).getRateId()));
            txtFeeLevelId.setText(String.valueOf(lst.get(selectedIndex).getFeeLevelId()));
            txtMoney.setText(String.valueOf(lst.get(selectedIndex).getMoney()));
            dcDate.setDate(lst.get(selectedIndex).getFeeDate());
        }
    }//GEN-LAST:event_tbSubOrderMouseClicked

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new SubOrder().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnAdd;
    private javax.swing.JButton btnDelete;
    private javax.swing.JButton btnEdit;
    private com.toedter.calendar.JDateChooser dcDate;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTable tbSubOrder;
    private javax.swing.JTextField txtDescriptionn;
    private javax.swing.JTextField txtFeeLevelId;
    private javax.swing.JTextField txtMoney;
    private javax.swing.JTextField txtRate;
    private javax.swing.JTextField txtStudentId;
    private javax.swing.JTextField txtSubOrderId;
    private javax.swing.JLabel txtmeassage;
    // End of variables declaration//GEN-END:variables
}
